package com.adcc.loadSheetForwarder.service;

import com.adcc.loadSheetForwarder.entity.Flight;
import com.adcc.loadSheetForwarder.entity.LoadSheet;
import com.adcc.loadSheetForwarder.utils.LoadSheetException;

import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;

public interface UmeService {

    /**
     * 接口调用失败次数
     */
    AtomicInteger failCount = new AtomicInteger(0);

    /**
     * 从航旅获取航班列表
     *
     * @param paramMap
     * @return
     */
    List<Flight> getFlights(Map<String, Object> paramMap) throws LoadSheetException;

    /**
     * 从航旅获取舱单原文
     *
     * @param paramMap
     * @return
     * @throws LoadSheetException
     */
    LoadSheet getOriginalLoadSheet(Map<String, Object> paramMap) throws LoadSheetException;

    /**
     * 检查航旅接口的连通性
     */
    void checkUmeStatus();
}
